<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/10/21
 * Time: 14:28
 */
namespace Home\Model;
use Think\Model;
class  CourseModel extends Model {

    protected $_validate = array(
        array('course_title', 'require', '课程名不能为空！'),
        array('course_time', 'require', '授课时间不能为空！'),
        array('course_addr', 'require', '授课地点不能为空！'),
        array('course_fee', 'require', '课程收费不能为空！'),
        array('course_fee','is_numeric','课程费用格式错误','1','function'),
    );

    function getdate(){
        return date('Y-m-d');
    }

}